package auth.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

import auth.service.impl.FavoriteServiceFeignClientFallback;
import common.model.result.Result;


@Service
@FeignClient(name = "user-favorite-server",fallback = FavoriteServiceFeignClientFallback.class)
public interface FavoriteServiceFeignClient {
    //获取用户收藏列表
    @GetMapping("/favorite/list")
    Result getFavoriteList(@RequestHeader("uid") Long uid);
}
